home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / rrect=opcodes.hex < prev    next >
Text File  |  1992-11-01  |  2KB  |  57 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. 02 AA AA AA AA AA AA AA AA % fill pat
  10. 09 FF FF FF FF FF FF FF FF % pn pat
  11. 0A AA 55 AA 55 AA 55 AA 55 % back pat
  12.  
  13. % draw lines along its four sides
  14. 20 0010 0000 0010 00FF
  15. 20 0000 0010 00FF 0010
  16. 20 0050 0000 0050 00FF
  17. 20 0000 0050 00FF 0050
  18.  
  19. 20 0000 0080 00FF 0080
  20. 20 0000 00C0 00FF 00C0
  21.  
  22. 20 0080 0000 0080 00FF
  23. 20 00C0 0000 00C0 00FF
  24.  
  25.  
  26. 09 FF FF FF FF FF FF FF FF % pn pat (not 'official')
  27.  
  28. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  29. %
  30. %    Do the standard opcode test, but for round rectangles.:
  31. %    This involves using each of the 5 primary opcodes
  32. %    (frame, paint, erase, invert, and fill) for rrects in
  33. %    a nice square little grid.  This allows us to visually
  34. %    test that each opcode minimially does what it should, and
  35. %    that pixels are being drawn in the right places (i.e.
  36. %    that they touch the grid we drew above in the right places
  37. %    and not in others).  We always use the default oval size
  38. %
  39. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  40.  
  41. % Frame a round rectangle
  42. 40 0010 0010 0050 0050
  43.  
  44. % paint an adjacent one
  45. 41 0010 0080 0050 00C0
  46.  
  47. % try to invert the painted one (ha ha)
  48. 43 0010 0080 0050 00C0
  49.  
  50. % fill one below one
  51. 44 0080 0080 00C0 00C0
  52.  
  53. % erase a different one 
  54. 42 0080 0010 00C0 0050
  55.  
  56. FF    % end
  57.